home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 16 / Mac Magazin and MacEasy Magazine CD - Issue 16.iso / Online / NetCacheBack 0.9d5 ƒ / NetCacheResolver readme < prev   
Text File  |  1995-10-26  |  5KB  |  88 lines

  1. NetCacheResolver 0.9d5 - an AppleScriptable helper program
  2. Copyright (C)1995 Mizutori Tetsuya
  3. This is a freeware program.
  4. -- October 26, 1995
  5.  
  6. NetCacheResolver is a helper program to the AppleScript application NetCacheBack that can resolve the cache files of Netscape Navigator 1.1N or 2.0beta.  Among these two versions, there comes about some changes in the record format of the cache log databases. NetCacheResolver converts the 2.0beta’s CCache log datatabe to 1.1N’s Cache log one. It is also AppleScriptable, such as responding and directly sending back the resolved records to NetCacheBack.
  7.  
  8. NetCacheResolver is an AppleScript document, so it requires System 7.5 or later. Or, you need the relative scriptable Finder and other Scripting Additions.
  9.  
  10. *** IMPORTANT ***
  11. For the Netscape Navigator 2.0beta users, please notice that my reverse-engineering on cache log database is not a perfect work. Maybe or not, I wonder the format of database will be changed in the future versions of beta or final release of 2.0. Even if so, I am catching up with the new frontier as possible. Please keep up on the future release of the helper program NetCacheResolver for a new cache log database.
  12.  
  13. • Changes since 0.9d4, October 22, 1995
  14. Some rare case happens that cache file records are to be encountered with an exceptional field named “content-type”. Have you ever in the Web world met them? NetCacheResolver fails to resolve it properly. Fixed it.
  15.  
  16. • Changes since 0.9d3, October 15, 1995
  17. NetCacheResolver returns the cache log records in the right order, sorted by Name, Date, Size, and others. Due to the sorting method, NetCacheBack can easily and rapidly search the database for the queried record. Typically it runs over 2 to 20 times faster than the previous version. Or, operating time on each query is kept constant, independently of the database size.
  18.  
  19. • Usage
  20. There are three ways to handle this program to get Cache log record.
  21.  
  22. • ONE: Open the "CCache log" file from the “Open...” menu command
  23. After this operation on CCache log file, you will get a new Cache log file of 1.1N format in the same folder.
  24.  
  25. • TWO: Drag and drop the "CCache log" file onto NetCacheResolver icon
  26. Selecting the CCache log file to drop it to the NetCacheResolver icon, then you will get a new Cache log file of 1.1N’s one.
  27.  
  28. • THREE: Send “open” or “resolve” command to NetCacheResolver
  29. Following this command, the client application, say NetCacheBack, gets the Cache log file in the Cache folder (for “open” command) or receiving the Cache log data records as a reply message (for “resolve” command). Let me show an example.
  30.  
  31.     tell application "Finder"
  32.         set the cachelog to (choose file of type {"DBMC"})
  33.         tell application "NetCacheResolver"
  34.             --open {cachelog}
  35.             set cacheRecordList to resolve {cachelog}
  36.             quit
  37.         end tell
  38.     end tell
  39.  
  40.  
  41. • AppleScript Commands of NetCacheResolver
  42. Required Suite:
  43.     open  alias   -- Resolve the CCache log and create Cache log
  44.     print  alias  -- (do nothing)
  45.     run     -- Sent to an application when it is double-clicked
  46.     quit    -- Quit application
  47.  
  48. Net Cache Resolver:
  49.     resolve  alias  -- Resolve the CCache log file(s)
  50.         [with sorted by  name/date/size/type/url]
  51.     Result:   list  -- list of resolved records
  52.  
  53.     sort  list  -- the list of items to sort, Cache log Record
  54.         [at  integer]  -- field number, beginning with 1
  55.         [by  name/date/size/type/url]  -- by sorting method
  56.         [in  regular/reverse]  -- order form
  57.         [as  alphabet/number]  -- evaluating type
  58.         [with  string]  -- field separator, eg. space or tab
  59.     Result:   list  -- the list of sorted items
  60.  
  61.     view  bySmallIcon/byIcon/byName/byDate/bySize/byKind/byComment/byLabel/byVersion
  62.     -- no operation, definitions only; for the constants of view selected for the window
  63.  
  64.     show about  -- Show about this application
  65.  
  66. • Files included are ...
  67.    1. NetCacheResolver              -- an AppleScriptable helper application
  68.    2. NetCacheResolver source   -- source code written in CodeWarrior DR/6.1
  69.    3. NetCacheResolver readme  -- just this file you are reading
  70.    This is a freeware program. You can distribute it without any limitations.
  71.  
  72. • About the NetCacheBack...
  73. NetCacheBack resolves the cache files of Netscape Navigator 1.1N or 2.0beta. Just drag and drop cache files like "cache123000-2" (or "cache123000.html") in the Cache folder onto NetCacheBack icon. That’s all what to do. Then they are renamed to proper names like "index.html" and moved to the destination folder. If the folders do not exist, any new folder required is created automatically. Let me show the followings;
  74.    [currentFolder]:cache123000-2
  75.    --> [currentFolder]:[home.netscape.com]:[home]:index.html
  76. If you are using the Netscape Navigator 2.0beta, NetCacheBack tries to get Cache log data from the CCache log file of 2.0beta with the help of NetCacheResolver. 
  77. For more information and its source code, please find this companion program at the “info-mac” archive sites where I posted it separately.
  78.  
  79. • Comments, or Bug reports are ..
  80. Please feel free to contact me via e-mail:
  81.     mailto:mizutori@ai.rcast.u-tokyo.ac.jp
  82. or  mailto:mizutori@po.iijnet.or.jp
  83.  
  84. I wish you enjoy it!
  85. ---
  86. Mizutori Tetsuya, RCAST, Univ. of Tokyo, Japan
  87. mizutori@ai.rcast.u-tokyo.ac.jp
  88.